﻿<?xml version="1.0" encoding="utf-8"?>
<Window
    x:Class="Automator.Windows.ExceptionWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Exception"
    MinWidth="476"
    MinHeight="441"
    ResizeMode="CanResize"
    ShowInTaskbar="True"
    Background="{x:Static SystemColors.ControlBrush}"
    WindowStartupLocation="CenterOwner"
    Width="476"
    Height="441">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition
                Height="Auto" />
            <RowDefinition
                Height="Auto" />
            <RowDefinition
                Height="*" />
            <RowDefinition
                Height="Auto" />
        </Grid.RowDefinitions>
        <StackPanel
            Orientation="Horizontal"
            Grid.Row="0"
            Height="80"></StackPanel>
        <TextBlock
            Grid.Row="1"
            VerticalAlignment="Bottom"
            Margin="12,24,12,4"
            Text="An unhandled exception has occurred:" />
        <TextBox
            x:Name="edtTrace"
            Margin="12,0,12,8"
            Grid.Row="2"
            TabIndex="3"
            IsReadOnly="True"
            IsReadOnlyCaretVisible="False"
            TextWrapping="Wrap"
            VerticalScrollBarVisibility="Auto"></TextBox>
        <StackPanel
            Orientation="Horizontal"
            Grid.Row="3"
            HorizontalAlignment="Right"
            Margin="0,0,12,8">
            <Button
                Name="btnCopy"
                Content="Copy To Clipboard"
                Padding="16,4,16,4"
                Margin="4"
                MinWidth="70"
                TabIndex="0"
                Click="BtnCopy_Click" />
            <Button
                Name="btnShutdown"
                Content="Shutdown Automator"
                Padding="16,4,16,4"
                Margin="4"
                MinWidth="70"
                TabIndex="1"
                Click="BtnShutdown_Click" />
            <Button
                Name="btnContinue"
                Content="Try To Continue"
                Padding="16,4,16,4"
                Margin="4"
                IsCancel="True"
                MinWidth="70"
                TabIndex="2"
                Click="BtnContinue_Click" />
        </StackPanel>
    </Grid>
</Window>